from flask import Blueprint
from app.api.v1 import user,client,token,case,mock,tool,apis

def create_blueprint_v1():#注册红图
    bp_v1 = Blueprint('v1', __name__)#实例化蓝图对象
    user.api.register(bp_v1) #红图调用自己的注册方法注册到蓝图
    client.api.register(bp_v1)
    token.api.register(bp_v1)
    case.api.register(bp_v1)
    mock.api.register(bp_v1)
    tool.api.register(bp_v1)
    apis.api.register(bp_v1)
    return bp_v1